<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui" />
    <link rel="stylesheet" href="http://wanjia.mcooz.com/views/mobile_basic/skin/default/themes/jquery.mobile.icons.min.css" />
    <link rel="stylesheet" href="http://wanjia.mcooz.com/views/mobile_basic/skin/default/css/mobile.css" />
    <link rel="stylesheet" href="http://wanjia.mcooz.com/views/mobile_basic/skin/default/themes/blue.min.css" />
    <script type="text/javascript" charset="UTF-8" src="http://wanjia.mcooz.com/runtime/_systemjs/jquery/jquery-1.11.3.min.js"></script><script type="text/javascript" charset="UTF-8" src="http://wanjia.mcooz.com/runtime/_systemjs/jquery/jquery-migrate-1.2.1.min.js"></script>
    <script src="http://wanjia.mcooz.com/views/mobile_basic/javascript/mobile.js"></script>
    <link rel="stylesheet" href="http://wanjia.mcooz.com/views/mobile_basic/skin/default/css/index.css" />
    <link href="http://www.mcooz.com/Public/font1/css/font-awesome.css" rel="stylesheet">
    <script type="text/javascript" charset="UTF-8" src="__PUBLIC__/artTemplate/artTemplate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="__PUBLIC__/artTemplate/artTemplate-plugin.js"></script>
</head>
<body>
<div data-role="page" id="Home" data-theme="a">

    <div role="main">
        <div class="kros_content ">
            <div class="row clearfix  plr">
                <div class="col-md-6 col-xs-6 column">
                    <h4 class="text-left">
                     <i class="fa fa-user mgr6 blue"> </i>  法名:<span id="username"></span>
                        </h4>
                </div>
                <div class="col-md-6 col-xs-6 column">
                    <h4 class="text-left">
                        佛珠:<span id="user"></span>
                        </h4>
                </div>
            </div>
            <ul data-role="listview" data-theme="b" class="kros_view">
                <li><a href="{url:ucenter/integral}" data-transition="flow" data-ajax="false"><i class="fa fa-github-alt mgr6 blue"></i>我的等级</a></li>
                <li><a href="{url:ucenter/evaluation}" data-transition="flow" data-ajax="false"><i class="fa fa-thumbs-up mgr6 blue"></i>我的消息</a></li>
                <li><a href="{url:ucenter/online_recharge}" data-transition="flow" data-ajax="false"><i class="fa fa-money mgr6 blue"></i>在线充值</a></li>
                <li><a href="{url:ucenter/info}" data-transition="flow" data-ajax="false"><i class="fa fa-child mgr6 blue"></i>个人资料</a></li>
                <li><a href="{url:ucenter/password}" data-transition="flow" data-ajax="false"><i class="fa fa-lock mgr6 blue"></i>密码修改</a></li>
            </ul>
        </div>
    </div>
</div>

<script type='text/html' id='userCenterTemplate'>
<%=ext%>

</script>

<script type='text/html' id='usernameTemplate'>
<%=ext%>

</script>

 <script type='text/html' id='noDataTemplate'>
                <div class="pro_list border-bottom" style="text-align:center;line-height:150px">您尚未登录
            </div>
</script> 

<script>

    init()

    function init(){

         if (1==1) {
            url = 'http://www.mcooz.com/Member/gift';
            $.getJSON(url,{'json':1}, function(json) {

            var userCenterHtml = template.render('userCenterTemplate',json);

            $('#user').empty().append(userCenterHtml);

                  });

              url = 'http://www.mcooz.com/Member/username';
            $.getJSON(url,{'json':1}, function(json) {

            var userCenterHtml = template.render('usernameTemplate',json);

            $('#username').empty().append(userCenterHtml);

                  });


            }
            else
            {
                 var noDataHtml = template.render('noDataTemplate',1);
                 $('#user').empty().append(noDataHtml);

            };


    }

</script>
</body>

